package com.zyx.xunyilu.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName: LoginStatus
 * @author: zyx
 * @E-mail: 1377631190@qq.com
 * @DATE: 2019/11/10 17:47
 */
@Getter
@AllArgsConstructor
public enum LoginStatus {

    /**
     * OFFLINE 离线
     * ONLINE  在线
     */
    OFFLINE("OFFLINE", 0),
    ONLINE("ONLINE", 1);

    @JsonValue
    private String status;

    @EnumValue
    private int statusCode;

}
